<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>兴趣交友测试 - 高级筛选</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary-color: #3b82f6;
            --secondary-color: #10b981;
            --accent-color: #f59e0b;
            --dark-color: #1e293b;
            --light-color: #f8fafc;
            --gray-color: #94a3b8;
            --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: #f1f5f9;
            color: var(--dark-color);
        }
        
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .navbar-brand {
            color: var(--primary-color);
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .filter-section {
            background-color: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 30px;
            box-shadow: var(--card-shadow);
        }
        
        .filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .filter-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--dark-color);
        }
        
        .filter-reset {
            color: var(--primary-color);
            background: none;
            border: none;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .filter-group {
            margin-bottom: 20px;
        }
        
        .filter-label {
            font-weight: 600;
            margin-bottom: 10px;
            display: block;
            color: var(--dark-color);
        }
        
        .tag-filter {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .tag-item {
            background-color: #f1f5f9;
            border-radius: 20px;
            padding: 6px 14px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            border: 1px solid transparent;
        }
        
        .tag-item:hover {
            background-color: #e2e8f0;
        }
        
        .tag-item.active {
            background-color: var(--primary-color);
            color: white;
        }
        
        .range-slider {
            width: 100%;
            margin: 20px 0;
        }
        
        .range-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--gray-color);
        }
        
        .search-box {
            position: relative;
            margin-bottom: 20px;
        }
        
        .search-input {
            width: 100%;
            padding: 10px 15px 10px 40px;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            font-size: 0.95rem;
        }
        
        .search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray-color);
        }
        
        .filter-actions {
            display: flex;
            justify-content: flex-end;
            gap: 15px;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid #e2e8f0;
        }
        
        .applied-filters {
            background-color: #f8fafc;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 25px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }
        
        .applied-filter {
            background-color: rgba(59, 130, 246, 0.1);
            color: var(--primary-color);
            border-radius: 20px;
            padding: 5px 12px;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .remove-filter {
            cursor: pointer;
            font-weight: bold;
            font-size: 1rem;
            line-height: 1;
        }
        
        .filter-count {
            font-size: 0.9rem;
            color: var(--gray-color);
        }
        
        .test-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            margin-bottom: 20px;
        }
        
        .test-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--hover-shadow);
        }
        
        .test-card-body {
            padding: 16px;
        }
        
        .test-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 8px;
            transition: var(--transition);
        }
        
        .test-card:hover .test-title {
            color: var(--primary-color);
        }
        
        .test-description {
            color: var(--gray-color);
            font-size: 0.9rem;
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .author-info {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
        }
        
        .author-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 500;
            font-size: 0.85rem;
        }
        
        .stats {
            display: flex;
            gap: 12px;
            color: var(--gray-color);
            font-size: 0.8rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .category-badge {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 500;
            margin-right: 6px;
            margin-bottom: 8px;
        }
        
        .sort-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .sort-label {
            font-size: 0.9rem;
            color: var(--gray-color);
        }
        
        .sort-select {
            padding: 6px 12px;
            border-radius: 6px;
            border: 1px solid #e2e8f0;
            font-size: 0.9rem;
            background-color: white;
        }
        
        .results-per-page {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.9rem;
        }
        
        .pagination {
            margin-top: 30px;
            justify-content: center;
        }
        
        .mobile-filter-toggle {
            display: none;
            margin-bottom: 20px;
            width: 100%;
            padding: 10px 15px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 500;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        @media (max-width: 768px) {
            .mobile-filter-toggle {
                display: flex;
            }
            
            .filter-sidebar {
                display: none;
                margin-bottom: 20px;
            }
            
            .filter-sidebar.active {
                display: block;
            }
            
            .stats {
                flex-wrap: wrap;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-compass"></i>
                <span>兴趣社交</span>
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">兴趣测试</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">交友推荐</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">兴趣社群</a>
                    </li>
                </ul>
                
                <div class="d-flex align-items-center gap-3">
                    <div class="dropdown">
                        <button class="btn btn-secondary dropdown-toggle rounded-circle" type="button" data-bs-toggle="dropdown">
                            <img src="https://picsum.photos/id/64/40/40" alt="用户头像" width="36" height="36" class="rounded-circle">
                        </button>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li><a class="dropdown-item" href="#">个人中心</a></li>
                            <li><a class="dropdown-item" href="#">我的测试</a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li><a class="dropdown-item" href="#">退出登录</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <!-- 主要内容 -->
    <div class="container py-5">
        <!-- 页面标题 -->
        <div class="mb-6">
            <h1 class="section-title">兴趣交友测试</h1>
            <p class="text-muted">通过筛选找到你感兴趣的测试，结识志同道合的朋友</p>
        </div>
        
        <!-- 移动端筛选按钮 -->
        <button class="mobile-filter-toggle" id="mobileFilterToggle">
            <i class="fas fa-filter"></i> 筛选条件
        </button>
        
        <div class="row">
            <!-- 筛选侧边栏 -->
            <div class="col-md-3 filter-sidebar" id="filterSidebar">
                <div class="filter-section">
                    <div class="filter-header">
                        <h3 class="filter-title">筛选条件</h3>
                        <button class="filter-reset" id="resetFilters">
                            <i class="fas fa-redo-alt"></i> 重置
                        </button>
                    </div>
                    
                    <!-- 搜索框 -->
                    <div class="search-box">
                        <i class="fas fa-search search-icon"></i>
                        <input type="text" class="search-input" placeholder="搜索测试名称或描述...">
                    </div>
                    
                    <!-- 分类筛选 -->
                    <div class="filter-group">
                        <label class="filter-label">兴趣分类</label>
                        <div class="tag-filter">
                            <div class="tag-item active">全部</div>
                            <div class="tag-item">音乐</div>
                            <div class="tag-item">电影</div>
                            <div class="tag-item">旅行</div>
                            <div class="tag-item">美食</div>
                            <div class="tag-item">运动</div>
                            <div class="tag-item">阅读</div>
                            <div class="tag-item">游戏</div>
                            <div class="tag-item">艺术</div>
                            <div class="tag-item">摄影</div>
                            <div class="tag-item">科技</div>
                        </div>
                    </div>
                    
                    <!-- 难度筛选 -->
                    <div class="filter-group">
                        <label class="filter-label">测试难度</label>
                        <div class="tag-filter">
                            <div class="tag-item active">全部</div>
                            <div class="tag-item">简单</div>
                            <div class="tag-item">中等</div>
                            <div class="tag-item">复杂</div>
                        </div>
                    </div>
                    
                    <!-- 问题数量 -->
                    <div class="filter-group">
                        <label class="filter-label">问题数量</label>
                        <input type="range" min="5" max="50" value="25" class="range-slider" id="questionRange">
                        <div class="range-labels">
                            <span>5题以内</span>
                            <span id="rangeValue">10-20题</span>
                            <span>50题以上</span>
                        </div>
                    </div>
                    
                    <!-- 参与人数 -->
                    <div class="filter-group">
                        <label class="filter-label">参与人数</label>
                        <div class="tag-filter">
                            <div class="tag-item active">不限</div>
                            <div class="tag-item">100人以下</div>
                            <div class="tag-item">100-1000人</div>
                            <div class="tag-item">1000-10000人</div>
                            <div class="tag-item">10000人以上</div>
                        </div>
                    </div>
                    
                    <!-- 发布时间 -->
                    <div class="filter-group">
                        <label class="filter-label">发布时间</label>
                        <div class="tag-filter">
                            <div class="tag-item active">不限</div>
                            <div class="tag-item">今天</div>
                            <div class="tag-item">本周</div>
                            <div class="tag-item">本月</div>
                            <div class="tag-item">半年内</div>
                        </div>
                    </div>
                    
                    <!-- 筛选按钮 -->
                    <div class="filter-actions">
                        <button class="btn btn-outline-primary" id="cancelFilters">取消</button>
                        <button class="btn btn-primary">应用筛选</button>
                    </div>
                </div>
            </div>
            
            <!-- 测试列表 -->
            <div class="col-md-9">
                <!-- 已应用的筛选条件 -->
                <div class="applied-filters">
                    <span class="filter-count">找到 <strong>24</strong> 个测试</span>
                    <div class="applied-filter">
                        兴趣分类: 音乐
                        <span class="remove-filter">&times;</span>
                    </div>
                    <div class="applied-filter">
                        问题数量: 10-20题
                        <span class="remove-filter">&times;</span>
                    </div>
                    <div class="applied-filter">
                        参与人数: 1000人以上
                        <span class="remove-filter">&times;</span>
                    </div>
                </div>
                
                <!-- 排序和每页数量 -->
                <div class="sort-controls">
                    <div class="d-flex align-items-center gap-3">
                        <span class="sort-label">排序方式:</span>
                        <select class="sort-select">
                            <option>推荐程度</option>
                            <option>最新发布</option>
                            <option>参与人数最多</option>
                            <option>匹配成功率高</option>
                            <option>评分最高</option>
                        </select>
                    </div>
                    
                    <div class="results-per-page">
                        <span>每页显示:</span>
                        <select class="sort-select">
                            <option>10条</option>
                            <option selected>20条</option>
                            <option>30条</option>
                        </select>
                    </div>
                </div>
                
                <!-- 测试列表 -->
                <div class="test-list">
                    <!-- 测试项1 -->
                    <div class="test-card">
                        <div class="test-card-body">
                            <span class="category-badge bg-primary text-white">音乐</span>
                            <span class="category-badge bg-secondary text-white">热门</span>
                            <h3 class="test-title">你的音乐品味能匹配到多少朋友？</h3>
                            <p class="test-description">
                                这个测试将通过15道精心设计的问题，分析你的音乐品味和偏好，找到与你音乐喜好最匹配的朋友。
                            </p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/id/1025/40/40" alt="作者头像" class="author-avatar">
                                <div class="author-name">王音乐</div>
                            </div>
                            
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 12,543
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 892
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 2,451
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user-friends"></i> 3,241 人已匹配
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-calendar"></i> 2023-05-15
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 测试项2 -->
                    <div class="test-card">
                        <div class="test-card-body">
                            <span class="category-badge bg-primary text-white">音乐</span>
                            <span class="category-badge bg-warning text-white">新测试</span>
                            <h3 class="test-title">摇滚音乐类型测试：找到你的摇滚同好</h3>
                            <p class="test-description">
                                从经典摇滚到朋克、金属，测试你对各种摇滚风格的偏好，找到可以一起去现场的摇滚伙伴。
                            </p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/id/1074/40/40" alt="作者头像" class="author-avatar">
                                <div class="author-name">张摇滚</div>
                            </div>
                            
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 5,678
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 345
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 1,234
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user-friends"></i> 1,876 人已匹配
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-calendar"></i> 2023-06-10
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 测试项3 -->
                    <div class="test-card">
                        <div class="test-card-body">
                            <span class="category-badge bg-primary text-white">音乐</span>
                            <h3 class="test-title">古典音乐鉴赏力测试：寻找知音</h3>
                            <p class="test-description">
                                测试你对古典音乐的了解和偏好，从巴洛克到浪漫主义，找到同样喜爱古典音乐的朋友。
                            </p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/id/1066/40/40" alt="作者头像" class="author-avatar">
                                <div class="author-name">李古典</div>
                            </div>
                            
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 3,456
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 231
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 876
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user-friends"></i> 1,056 人已匹配
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-calendar"></i> 2023-05-28
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 测试项4 -->
                    <div class="test-card">
                        <div class="test-card-body">
                            <span class="category-badge bg-primary text-white">音乐</span>
                            <span class="category-badge bg-info text-white">高匹配</span>
                            <h3 class="test-title">电影原声音乐测试：找到配乐同好</h3>
                            <p class="test-description">
                                测试你对电影原声音乐的偏好，从好莱坞大片到独立电影，找到同样热爱电影配乐的朋友。
                            </p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/id/1083/40/40" alt="作者头像" class="author-avatar">
                                <div class="author-name">陈配乐</div>
                            </div>
                            
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 4,321
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 389
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 1,098
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user-friends"></i> 1,567 人已匹配
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-calendar"></i> 2023-06-02
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 测试项5 -->
                    <div class="test-card">
                        <div class="test-card-body">
                            <span class="category-badge bg-primary text-white">音乐</span>
                            <h3 class="test-title">K歌之王测试：找到你的合唱伙伴</h3>
                            <p class="test-description">
                                测试你的K歌偏好和风格，从流行金曲到经典老歌，找到最适合和你一起K歌的伙伴。
                            </p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/id/1027/40/40" alt="作者头像" class="author-avatar">
                                <div class="author-name">刘歌神</div>
                            </div>
                            
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 6,789
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 543
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 1,765
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-user-friends"></i> 2,109 人已匹配
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-calendar"></i> 2023-05-20
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 分页 -->
                <nav aria-label="Page navigation">
                    <ul class="pagination">
                        <li class="page-item disabled">
                            <a class="page-link" href="#" tabindex="-1" aria-disabled="true">上一页</a>
                        </li>
                        <li class="page-item active"><a class="page-link" href="#">1</a></li>
                        <li class="page-item"><a class="page-link" href="#">2</a></li>
                        <li class="page-item"><a class="page-link" href="#">3</a></li>
                        <li class="page-item">
                            <a class="page-link" href="#">下一页</a>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer class="bg-dark text-white py-5 mt-5">
        <div class="container">
            <div class="row">
                <div class="col-md-4 mb-4">
                    <h4 class="mb-3 d-flex align-items-center gap-2">
                        <i class="fas fa-compass"></i> 兴趣社交
                    </h4>
                    <p>通过兴趣测试，找到志同道合的朋友，拓展你的社交圈。</p>
                </div>
                <div class="col-md-4 mb-4">
                    <h5 class="mb-3">快速链接</h5>
                    <ul class="list-unstyled">
                        <li><a href="#" class="text-light">首页</a></li>
                        <li><a href="#" class="text-light">兴趣测试</a></li>
                        <li><a href="#" class="text-light">交友推荐</a></li>
                        <li><a href="#" class="text-light">兴趣社群</a></li>
                    </ul>
                </div>
                <div class="col-md-4">
                    <h5 class="mb-3">联系我们</h5>
                    <ul class="list-unstyled">
                        <li class="d-flex align-items-center gap-2"><i class="fas fa-envelope"></i> contact@interestsocial.com</li>
                        <li class="d-flex align-items-center gap-2"><i class="fas fa-phone"></i> 400-888-9999</li>
                    </ul>
                    <div class="mt-3 d-flex gap-3">
                        <a href="#" class="text-light"><i class="fab fa-weixin fa-lg"></i></a>
                        <a href="#" class="text-light"><i class="fab fa-weibo fa-lg"></i></a>
                        <a href="#" class="text-light"><i class="fab fa-qq fa-lg"></i></a>
                    </div>
                </div>
            </div>
            <div class="text-center mt-5 pt-3 border-top border-secondary">
                <p>&copy; 2023 兴趣社交 版权所有</p>
            </div>
        </div>
    </footer>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 标签筛选功能
        document.querySelectorAll('.tag-item').forEach(item => {
            item.addEventListener('click', function() {
                // 找到同级的所有标签并移除active类
                const siblings = Array.from(this.parentElement.children);
                siblings.forEach(sib => sib.classList.remove('active'));
                
                // 给当前点击的标签添加active类
                this.classList.add('active');
            });
        });
        
        // 问题数量滑块
        const questionRange = document.getElementById('questionRange');
        const rangeValue = document.getElementById('rangeValue');
        
        questionRange.addEventListener('input', function() {
            let valueText = '';
            if (this.value < 10) {
                valueText = '5-10题';
            } else if (this.value < 20) {
                valueText = '10-20题';
            } else if (this.value < 30) {
                valueText = '20-30题';
            } else if (this.value < 40) {
                valueText = '30-40题';
            } else {
                valueText = '40-50题';
            }
            rangeValue.textContent = valueText;
        });
        
        // 移除已应用的筛选条件
        document.querySelectorAll('.remove-filter').forEach(btn => {
            btn.addEventListener('click', function() {
                this.parentElement.remove();
                
                // 如果没有筛选条件了，隐藏整个区域
                if (document.querySelectorAll('.applied-filter').length === 0) {
                    document.querySelector('.applied-filters').style.display = 'none';
                }
            });
        });
        
        // 重置筛选条件
        document.getElementById('resetFilters').addEventListener('click', function() {
            // 重置所有标签筛选
            document.querySelectorAll('.tag-filter').forEach(filter => {
                const items = filter.querySelectorAll('.tag-item');
                items.forEach(item => item.classList.remove('active'));
                items[0].classList.add('active'); // 激活第一个"全部"或"不限"选项
            });
            
            // 重置滑块
            questionRange.value = 25;
            rangeValue.textContent = '10-20题';
            
            // 清空搜索框
            document.querySelector('.search-input').value = '';
            
            // 隐藏已应用的筛选条件
            document.querySelectorAll('.applied-filter').forEach(filter => filter.remove());
            document.querySelector('.applied-filters').style.display = 'none';
        });
        
        // 移动端筛选切换
        document.getElementById('mobileFilterToggle').addEventListener('click', function() {
            const filterSidebar = document.getElementById('filterSidebar');
            filterSidebar.classList.toggle('active');
        });
        
        // 取消筛选按钮（移动端）
        document.getElementById('cancelFilters').addEventListener('click', function() {
            const filterSidebar = document.getElementById('filterSidebar');
            filterSidebar.classList.remove('active');
        });
        
        // 应用筛选按钮点击事件
        document.querySelector('.filter-actions .btn-primary').addEventListener('click', function() {
            // 在实际应用中，这里会处理筛选逻辑并刷新列表
            
            // 移动端自动隐藏筛选面板
            if (window.innerWidth < 768) {
                document.getElementById('filterSidebar').classList.remove('active');
            }
            
            // 显示已应用的筛选条件区域
            document.querySelector('.applied-filters').style.display = 'flex';
        });
    </script>
</body>
</html>
    
